package happy.study.clique;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * @author fsq
 * @date 2021/11/3 16:09
 **/
@EnableAsync
@SpringBootApplication
public class StartApplication {

    @PostConstruct
    public void init() {
        // 设置默认时区
        TimeZone.setDefault(TimeZone.getTimeZone("GMT+8"));
    }

    public static void main(String[] args) {
        SpringApplication.run(StartApplication.class, args);
    }

}
